﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forum.Entity.Post;
using Forum.DAL.Post;
using Frame.Lib.Core.Base;

namespace Forum.BLL.Post
{
    public class TopicTypeBO : CommonOperate<TopicTypeInfo>
    {
        private TopicTypeDAL _forumTopicType;

        protected override BaseDAL DAL
        {
            get
            {
                return _forumTopicType;

            }
        }

        public TopicTypeBO()
        {
            _forumTopicType = new TopicTypeDAL();
        }

        public bool Exist(string strName, object id, int boardID)
        {
            bool flag = _forumTopicType.Exist(strName, id, boardID);
            return flag;
        }

        public List<TopicTypeInfo> GetList(string boardID)
        {
            return _forumTopicType.GetList(boardID);
        }
    }
}
